/**
 * Anderground project - Subway maps processor application.
 * Copyright (C) 2008 Maksim Tkatchenko
 * Copyright (C) 2008-2009 Eldar Abusalimov, Ilya Shurigyn
 * 
 * This file is part of Anderground.
 * 
 * Anderground is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Anderground is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Anderground.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.anderground.core.graphics;

import org.anderground.internal.graphics.abstaractions.AbstractCanvas;
import org.anderground.internal.graphics.abstaractions.Delegator;

public class Canvas extends Delegator<AbstractCanvas> implements AbstractCanvas {

	public Canvas(AbstractCanvas canvas) {
		setDelegate(canvas);
	}

	public void drawLine(float startX, float startY, float stopX, float stopY,
			Paint paint) {
		getDelegate().drawLine(startX, startY, stopX, stopY, paint);
	}

	public void drawPoint(float x, float y, Paint paint) {
		getDelegate().drawPoint(x, y, paint);
	}

	public void drawLine(PointF start, PointF stop, Paint paint) {
		getDelegate().drawLine(start.x, start.y, stop.x, stop.y, paint);
	}

	public void drawPoint(PointF pointF, Paint paint) {
		getDelegate().drawPoint(pointF.x, pointF.y, paint);
	}

	public void drawText(String text, float x, float y, Paint paint) {
		getDelegate().drawText(text, x, y, paint);
	}

	public void drawArc(RectF oval, float startAngle, float sweepAngle,
			Paint paint) {
		getDelegate().drawArc(oval, startAngle, sweepAngle, paint);
	}

	public void drawCircle(float cx, float cy, float radius, Paint paint) {
		getDelegate().drawCircle(cx, cy, radius, paint);
	}

	public void drawCircle(PointF pointF, float radius, Paint paint) {
		getDelegate().drawCircle(pointF.x, pointF.y, radius, paint);
	}

	public void translate(float dx, float dy) {
		getDelegate().translate(dx, dy);
	}

	public void scale(float sx, float sy) {
		getDelegate().scale(sx, sy);
	}

	// public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
	// getDelegate().drawBitmap(bitmap, src, dst, paint);
	// }

}
